﻿import QtQuick 2.15
import QtQuick.Controls 2.15
/*
  料高选择界面
*/

Item {
    id:backGround
    width: screenWidth
    height: 1600

    Rectangle{
        anchors.fill: backGround
        color: "#00BFFF"
        border.width: 5
        border.color: "#F0F8FF"
    }

    onVisibleChanged: {
        if(visible === true)
        {
            Cpp_Connect.pageNumber = 8
            Cpp_LGChoose.getAllParameterFromSQL()
        }
    }

    // 模式切换按钮类型和按钮绑定
    property bool modeType:  false

    Text{
        anchors.left: backGround.left
        anchors.leftMargin: 60
        anchors.top: backGround.top
        anchors.topMargin: 30
        font.pixelSize: 30
        font.bold: true
        text: qsTr("型材名称")
    }

    Text {
        anchors.left: backGround.left
        anchors.leftMargin: 280
        anchors.top: backGround.top
        anchors.topMargin: 30
        font.pixelSize: 30
        font.bold: true
        text: qsTr("高度")
    }

    Text{
        anchors.left: backGround.left
        anchors.leftMargin: 470
        anchors.top: backGround.top
        anchors.topMargin: 30
        font.pixelSize: 30
        font.bold: true
        text: qsTr("型材名称")
    }

    Text {
        anchors.left: backGround.left
        anchors.leftMargin: 700
        anchors.top: backGround.top
        anchors.topMargin: 30
        font.pixelSize: 30
        font.bold: true
        text: qsTr("高度")
    }

    Rectangle{
        id:xc_Name01
        anchors.left: backGround.left
        anchors.leftMargin: 30
        anchors.top: backGround.top
        anchors.topMargin: 70
        width: 180
        height: 70
        radius: 10
        color: focus ? "green" : !modeType ? "gray" : "white"

        Text{
            id:xc_Name01_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name01
        }

        TextInput{
            id:xc_Name01_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(1,"XCNAME",xc_Name01_Input.text)
                xc_Name01_Text.text  = xc_Name01_Input.text
                xc_Name01_Text.visible = true
                xc_Name01_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()                

                if(modeType)
                {
                    xc_Name01_Text.visible = false
                    xc_Name01_Input.visible = true
                    xc_Name01_Input.text = xc_Name01_Text.text
                    xc_Name01_Input.forceActiveFocus()
                    xc_Name01_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 1 ")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height01_Text.text)
                }

            }
        }

    }

    Rectangle{
        id:xc_Height01
        anchors.left: backGround.left
        anchors.leftMargin: 225
        anchors.top: backGround.top
        anchors.topMargin: 70
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height01_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height01
        }

        TextInput{
            id:xc_Height01_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(1,"XCVALUE",xc_Height01_Input.text)
                xc_Height01_Text.text  = xc_Height01_Input.text
                xc_Height01_Text.visible = true
                xc_Height01_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height01_Text.visible = false
                xc_Height01_Input.visible = true
                xc_Height01_Input.text = xc_Height01_Text.text
                xc_Height01_Input.forceActiveFocus()
                xc_Height01_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name02
        anchors.left: backGround.left
        anchors.leftMargin: 30
        anchors.top: backGround.top
        anchors.topMargin: 145
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name02_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name02
        }

        TextInput{
            id:xc_Name02_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(2,"XCNAME",xc_Name02_Input.text)
                xc_Name02_Text.text  = xc_Name02_Input.text
                xc_Name02_Text.visible = true
                xc_Name02_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name02_Text.visible = false
                    xc_Name02_Input.visible = true
                    xc_Name02_Input.text = xc_Name02_Text.text
                    xc_Name02_Input.forceActiveFocus()
                    xc_Name02_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 2")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height02_Text.text)
                }

            }
        }

    }

    Rectangle{
        id:xc_Height02
        anchors.left: backGround.left
        anchors.leftMargin: 225
        anchors.top: backGround.top
        anchors.topMargin: 145
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height02_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height02
        }

        TextInput{
            id:xc_Height02_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(2,"XCVALUE",xc_Height02_Input.text)
                xc_Height02_Text.text  = xc_Height02_Input.text
                xc_Height02_Text.visible = true
                xc_Height02_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height02_Text.visible = false
                xc_Height02_Input.visible = true
                xc_Height02_Input.text = xc_Height02_Text.text
                xc_Height02_Input.forceActiveFocus()
                xc_Height02_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name03
        anchors.left: backGround.left
        anchors.leftMargin: 30
        anchors.top: backGround.top
        anchors.topMargin: 220
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name03_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name03
        }

        TextInput{
            id:xc_Name03_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(3,"XCNAME",xc_Name03_Input.text)
                xc_Name03_Text.text  = xc_Name03_Input.text
                xc_Name03_Text.visible = true
                xc_Name03_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name03_Text.visible = false
                    xc_Name03_Input.visible = true
                    xc_Name03_Input.text = xc_Name03_Text.text
                    xc_Name03_Input.forceActiveFocus()
                    xc_Name03_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 3 ")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height03_Text.text)
                }

            }
        }

    }

    Rectangle{
        id:xc_Height03
        anchors.left: backGround.left
        anchors.leftMargin: 225
        anchors.top: backGround.top
        anchors.topMargin: 220
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height03_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height03
        }

        TextInput{
            id:xc_Height03_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(3,"XCVALUE",xc_Height03_Input.text)
                xc_Height03_Text.text  = xc_Height03_Input.text
                xc_Height03_Text.visible = true
                xc_Height03_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height03_Text.visible = false
                xc_Height03_Input.visible = true
                xc_Height03_Input.text = xc_Height03_Text.text
                xc_Height03_Input.forceActiveFocus()
                xc_Height03_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name04
        anchors.left: backGround.left
        anchors.leftMargin: 30
        anchors.top: backGround.top
        anchors.topMargin: 295
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name04_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name04
        }

        TextInput{
            id:xc_Name04_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(4,"XCNAME",xc_Name04_Input.text)
                xc_Name04_Text.text  = xc_Name04_Input.text
                xc_Name04_Text.visible = true
                xc_Name04_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name04_Text.visible = false
                    xc_Name04_Input.visible = true
                    xc_Name04_Input.text = xc_Name04_Text.text
                    xc_Name04_Input.forceActiveFocus()
                    xc_Name04_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 4 ")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height04_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height04
        anchors.left: backGround.left
        anchors.leftMargin: 225
        anchors.top: backGround.top
        anchors.topMargin: 295
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height04_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height04
        }

        TextInput{
            id:xc_Height04_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(4,"XCVALUE",xc_Height04_Input.text)
                xc_Height04_Text.text  = xc_Height04_Input.text
                xc_Height04_Text.visible = true
                xc_Height04_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height04_Text.visible = false
                xc_Height04_Input.visible = true
                xc_Height04_Input.text = xc_Height04_Text.text
                xc_Height04_Input.forceActiveFocus()
                xc_Height04_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name05
        anchors.left: backGround.left
        anchors.leftMargin: 30
        anchors.top: backGround.top
        anchors.topMargin: 370
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name05_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name05
        }

        TextInput{
            id:xc_Name05_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(5,"XCNAME",xc_Name05_Input.text)
                xc_Name05_Text.text  = xc_Name05_Input.text
                xc_Name05_Text.visible = true
                xc_Name05_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name05_Text.visible = false
                    xc_Name05_Input.visible = true
                    xc_Name05_Input.text = xc_Name05_Text.text
                    xc_Name05_Input.forceActiveFocus()
                    xc_Name05_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 5 ")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height05_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height05
        anchors.left: backGround.left
        anchors.leftMargin: 225
        anchors.top: backGround.top
        anchors.topMargin: 370
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height05_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height05
        }

        TextInput{
            id:xc_Height05_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(5,"XCVALUE",xc_Height05_Input.text)
                xc_Height05_Text.text  = xc_Height05_Input.text
                xc_Height05_Text.visible = true
                xc_Height05_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Height05_Text.visible = false
                    xc_Height05_Input.visible = true
                    xc_Height05_Input.text = xc_Height05_Text.text
                    xc_Height05_Input.forceActiveFocus()
                    xc_Height05_Input.selectAll()
                }
            }
        }

    }

    Rectangle{
        id:xc_Name06
        anchors.left: backGround.left
        anchors.leftMargin: 30
        anchors.top: backGround.top
        anchors.topMargin: 445
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name06_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name06
        }

        TextInput{
            id:xc_Name06_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(6,"XCNAME",xc_Name06_Input.text)
                xc_Name06_Text.text  = xc_Name06_Input.text
                xc_Name06_Text.visible = true
                xc_Name06_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name06_Text.visible = false
                    xc_Name06_Input.visible = true
                    xc_Name06_Input.text = xc_Name06_Text.text
                    xc_Name06_Input.forceActiveFocus()
                    xc_Name06_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 6 ")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height06_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height06
        anchors.left: backGround.left
        anchors.leftMargin: 225
        anchors.top: backGround.top
        anchors.topMargin: 445
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height06_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height06
        }

        TextInput{
            id:xc_Height06_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(6,"XCVALUE",xc_Height06_Input.text)
                xc_Height06_Text.text  = xc_Height06_Input.text
                xc_Height06_Text.visible = true
                xc_Height06_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height06_Text.visible = false
                xc_Height06_Input.visible = true
                xc_Height06_Input.text = xc_Height06_Text.text
                xc_Height06_Input.forceActiveFocus()
                xc_Height06_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name07
        anchors.left: backGround.left
        anchors.leftMargin: 30
        anchors.top: backGround.top
        anchors.topMargin: 520
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name07_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name07
        }

        TextInput{
            id:xc_Name07_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(7,"XCNAME",xc_Name07_Input.text)
                xc_Name07_Text.text  = xc_Name07_Input.text
                xc_Name07_Text.visible = true
                xc_Name07_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name07_Text.visible = false
                    xc_Name07_Input.visible = true
                    xc_Name07_Input.text = xc_Name07_Text.text
                    xc_Name07_Input.forceActiveFocus()
                    xc_Name07_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 7")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height07_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height07
        anchors.left: backGround.left
        anchors.leftMargin: 225
        anchors.top: backGround.top
        anchors.topMargin: 520
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height07_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height07
        }

        TextInput{
            id:xc_Height07_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(7,"XCVALUE",xc_Height07_Input.text)
                xc_Height07_Text.text  = xc_Height07_Input.text
                xc_Height07_Text.visible = true
                xc_Height07_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height07_Text.visible = false
                xc_Height07_Input.visible = true
                xc_Height07_Input.text = xc_Height07_Text.text
                xc_Height07_Input.forceActiveFocus()
                xc_Height07_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name08
        anchors.left: backGround.left
        anchors.leftMargin: 30
        anchors.top: backGround.top
        anchors.topMargin: 595
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name08_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name08
        }

        TextInput{
            id:xc_Name08_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(8,"XCNAME",xc_Name08_Input.text)
                xc_Name08_Text.text  = xc_Name08_Input.text
                xc_Name08_Text.visible = true
                xc_Name08_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name08_Text.visible = false
                    xc_Name08_Input.visible = true
                    xc_Name08_Input.text = xc_Name08_Text.text
                    xc_Name08_Input.forceActiveFocus()
                    xc_Name08_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 8 ")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height08_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height08
        anchors.left: backGround.left
        anchors.leftMargin: 225
        anchors.top: backGround.top
        anchors.topMargin: 595
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height08_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height08
        }

        TextInput{
            id:xc_Height08_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(8,"XCVALUE",xc_Height08_Input.text)
                xc_Height08_Text.text  = xc_Height08_Input.text
                xc_Height08_Text.visible = true
                xc_Height08_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height08_Text.visible = false
                xc_Height08_Input.visible = true
                xc_Height08_Input.text = xc_Height08_Text.text
                xc_Height08_Input.forceActiveFocus()
                xc_Height08_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name09
        anchors.left: backGround.left
        anchors.leftMargin: 30
        anchors.top: backGround.top
        anchors.topMargin: 670
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name09_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name09
        }

        TextInput{
            id:xc_Name09_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(9,"XCNAME",xc_Name09_Input.text)
                xc_Name09_Text.text  = xc_Name09_Input.text
                xc_Name09_Text.visible = true
                xc_Name09_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name09_Text.visible = false
                    xc_Name09_Input.visible = true
                    xc_Name09_Input.text = xc_Name09_Text.text
                    xc_Name09_Input.forceActiveFocus()
                    xc_Name09_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 9 ")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height09_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height09
        anchors.left: backGround.left
        anchors.leftMargin: 225
        anchors.top: backGround.top
        anchors.topMargin: 670
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height09_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height09
        }

        TextInput{
            id:xc_Height09_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(9,"XCVALUE",xc_Height09_Input.text)
                xc_Height09_Text.text  = xc_Height09_Input.text
                xc_Height09_Text.visible = true
                xc_Height09_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height09_Text.visible = false
                xc_Height09_Input.visible = true
                xc_Height09_Input.text = xc_Height09_Text.text
                xc_Height09_Input.forceActiveFocus()
                xc_Height09_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name10
        anchors.left: backGround.left
        anchors.leftMargin: 30
        anchors.top: backGround.top
        anchors.topMargin: 745
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name10_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name10
        }

        TextInput{
            id:xc_Name10_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(10,"XCNAME",xc_Name10_Input.text)
                xc_Name10_Text.text  = xc_Name10_Input.text
                xc_Name10_Text.visible = true
                xc_Name10_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name10_Text.visible = false
                    xc_Name10_Input.visible = true
                    xc_Name10_Input.text = xc_Name10_Text.text
                    xc_Name10_Input.forceActiveFocus()
                    xc_Name10_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 10 ")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height10_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height10
        anchors.left: backGround.left
        anchors.leftMargin: 225
        anchors.top: backGround.top
        anchors.topMargin: 745
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height10_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height10
        }

        TextInput{
            id:xc_Height10_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(10,"XCVALUE",xc_Height10_Input.text)
                xc_Height10_Text.text  = xc_Height10_Input.text
                xc_Height10_Text.visible = true
                xc_Height10_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height10_Text.visible = false
                xc_Height10_Input.visible = true
                xc_Height10_Input.text = xc_Height10_Text.text
                xc_Height10_Input.forceActiveFocus()
                xc_Height10_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name11
        anchors.left: backGround.left
        anchors.leftMargin: 30
        anchors.top: backGround.top
        anchors.topMargin: 820
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name11_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name11
        }

        TextInput{
            id:xc_Name11_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(11,"XCNAME",xc_Name11_Input.text)
                xc_Name11_Text.text  = xc_Name11_Input.text
                xc_Name11_Text.visible = true
                xc_Name11_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name11_Text.visible = false
                    xc_Name11_Input.visible = true
                    xc_Name11_Input.text = xc_Name11_Text.text
                    xc_Name11_Input.forceActiveFocus()
                    xc_Name11_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 11 ")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height11_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height11
        anchors.left: backGround.left
        anchors.leftMargin: 225
        anchors.top: backGround.top
        anchors.topMargin: 820
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height11_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height11
        }

        TextInput{
            id:xc_Height11_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(11,"XCVALUE",xc_Height11_Input.text)
                xc_Height11_Text.text  = xc_Height11_Input.text
                xc_Height11_Text.visible = true
                xc_Height11_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height11_Text.visible = false
                xc_Height11_Input.visible = true
                xc_Height11_Input.text = xc_Height11_Text.text
                xc_Height11_Input.forceActiveFocus()
                xc_Height11_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name12
        anchors.left: backGround.left
        anchors.leftMargin: 30
        anchors.top: backGround.top
        anchors.topMargin: 895
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name12_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name12
        }

        TextInput{
            id:xc_Name12_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(12,"XCNAME",xc_Name12_Input.text)
                xc_Name12_Text.text  = xc_Name12_Input.text
                xc_Name12_Text.visible = true
                xc_Name12_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name12_Text.visible = false
                    xc_Name12_Input.visible = true
                    xc_Name12_Input.text = xc_Name12_Text.text
                    xc_Name12_Input.forceActiveFocus()
                    xc_Name12_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 12 ")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height12_Text.text)
                }
            }
        }

    }
    Rectangle{
        id:xc_Height12
        anchors.left: backGround.left
        anchors.leftMargin: 225
        anchors.top: backGround.top
        anchors.topMargin: 895
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height12_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height12
        }

        TextInput{
            id:xc_Height12_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(12,"XCVALUE",xc_Height12_Input.text)
                xc_Height12_Text.text  = xc_Height12_Input.text
                xc_Height12_Text.visible = true
                xc_Height12_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height12_Text.visible = false
                xc_Height12_Input.visible = true
                xc_Height12_Input.text = xc_Height12_Text.text
                xc_Height12_Input.forceActiveFocus()
                xc_Height12_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name13
        anchors.left: backGround.left
        anchors.leftMargin: 30
        anchors.top: backGround.top
        anchors.topMargin: 970
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name13_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name13
        }

        TextInput{
            id:xc_Name13_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(13,"XCNAME",xc_Name13_Input.text)
                xc_Name13_Text.text  = xc_Name13_Input.text
                xc_Name13_Text.visible = true
                xc_Name13_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name13_Text.visible = false
                    xc_Name13_Input.visible = true
                    xc_Name13_Input.text = xc_Name13_Text.text
                    xc_Name13_Input.forceActiveFocus()
                    xc_Name13_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 13 ")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height13_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height13
        anchors.left: backGround.left
        anchors.leftMargin: 225
        anchors.top: backGround.top
        anchors.topMargin: 970
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height13_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height13
        }

        TextInput{
            id:xc_Height13_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(13,"XCVALUE",xc_Height13_Input.text)
                xc_Height13_Text.text  = xc_Height13_Input.text
                xc_Height13_Text.visible = true
                xc_Height13_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height13_Text.visible = false
                xc_Height13_Input.visible = true
                xc_Height13_Input.text = xc_Height13_Text.text
                xc_Height13_Input.forceActiveFocus()
                xc_Height13_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name14
        anchors.left: backGround.left
        anchors.leftMargin: 30
        anchors.top: backGround.top
        anchors.topMargin: 1045
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name14_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name14
        }

        TextInput{
            id:xc_Name14_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(14,"XCNAME",xc_Name14_Input.text)
                xc_Name14_Text.text  = xc_Name14_Input.text
                xc_Name14_Text.visible = true
                xc_Name14_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name14_Text.visible = false
                    xc_Name14_Input.visible = true
                    xc_Name14_Input.text = xc_Name14_Text.text
                    xc_Name14_Input.forceActiveFocus()
                    xc_Name14_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 14 ")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height14_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height14
        anchors.left: backGround.left
        anchors.leftMargin: 225
        anchors.top: backGround.top
        anchors.topMargin: 1045
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height14_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height14
        }

        TextInput{
            id:xc_Height14_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(14,"XCVALUE",xc_Height14_Input.text)
                xc_Height14_Text.text  = xc_Height14_Input.text
                xc_Height14_Text.visible = true
                xc_Height14_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height14_Text.visible = false
                xc_Height14_Input.visible = true
                xc_Height14_Input.text = xc_Height14_Text.text
                xc_Height14_Input.forceActiveFocus()
                xc_Height14_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name15
        anchors.left: backGround.left
        anchors.leftMargin: 30
        anchors.top: backGround.top
        anchors.topMargin: 1120
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name15_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name15
        }

        TextInput{
            id:xc_Name15_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(15,"XCNAME",xc_Name15_Input.text)
                xc_Name15_Text.text  = xc_Name15_Input.text
                xc_Name15_Text.visible = true
                xc_Name15_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name15_Text.visible = false
                    xc_Name15_Input.visible = true
                    xc_Name15_Input.text = xc_Name15_Text.text
                    xc_Name15_Input.forceActiveFocus()
                    xc_Name15_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 15 ")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height15_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height15
        anchors.left: backGround.left
        anchors.leftMargin: 225
        anchors.top: backGround.top
        anchors.topMargin: 1120
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height15_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height15
        }

        TextInput{
            id:xc_Height15_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(15,"XCVALUE",xc_Height15_Input.text)
                xc_Height15_Text.text  = xc_Height15_Input.text
                xc_Height15_Text.visible = true
                xc_Height15_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height15_Text.visible = false
                xc_Height15_Input.visible = true
                xc_Height15_Input.text = xc_Height15_Text.text
                xc_Height15_Input.forceActiveFocus()
                xc_Height15_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name16
        anchors.left: backGround.left
        anchors.leftMargin: 30
        anchors.top: backGround.top
        anchors.topMargin: 1195
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name16_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name16
        }

        TextInput{
            id:xc_Name16_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(16,"XCNAME",xc_Name16_Input.text)
                xc_Name16_Text.text  = xc_Name16_Input.text
                xc_Name16_Text.visible = true
                xc_Name16_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name16_Text.visible = false
                    xc_Name16_Input.visible = true
                    xc_Name16_Input.text = xc_Name16_Text.text
                    xc_Name16_Input.forceActiveFocus()
                    xc_Name16_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 16 ")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height16_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height16
        anchors.left: backGround.left
        anchors.leftMargin: 225
        anchors.top: backGround.top
        anchors.topMargin: 1195
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height16_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height16
        }

        TextInput{
            id:xc_Height16_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(16,"XCVALUE",xc_Height16_Input.text)
                xc_Height16_Text.text  = xc_Height16_Input.text
                xc_Height16_Text.visible = true
                xc_Height16_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height16_Text.visible = false
                xc_Height16_Input.visible = true
                xc_Height16_Input.text = xc_Height16_Text.text
                xc_Height16_Input.forceActiveFocus()
                xc_Height16_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name17
        anchors.left: backGround.left
        anchors.leftMargin: 30
        anchors.top: backGround.top
        anchors.topMargin: 1270
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name17_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name17
        }

        TextInput{
            id:xc_Name17_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(17,"XCNAME",xc_Name17_Input.text)
                xc_Name17_Text.text  = xc_Name17_Input.text
                xc_Name17_Text.visible = true
                xc_Name17_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name17_Text.visible = false
                    xc_Name17_Input.visible = true
                    xc_Name17_Input.text = xc_Name17_Text.text
                    xc_Name17_Input.forceActiveFocus()
                    xc_Name17_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 17 ")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height17_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height17
        anchors.left: backGround.left
        anchors.leftMargin: 225
        anchors.top: backGround.top
        anchors.topMargin: 1270
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height17_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height17
        }

        TextInput{
            id:xc_Height17_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(17,"XCVALUE",xc_Height17_Input.text)
                xc_Height17_Text.text  = xc_Height17_Input.text
                xc_Height17_Text.visible = true
                xc_Height17_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height17_Text.visible = false
                xc_Height17_Input.visible = true
                xc_Height17_Input.text = xc_Height17_Text.text
                xc_Height17_Input.forceActiveFocus()
                xc_Height17_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name18
        anchors.left: backGround.left
        anchors.leftMargin: 30
        anchors.top: backGround.top
        anchors.topMargin: 1345
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name18_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name18
        }

        TextInput{
            id:xc_Name18_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(18,"XCNAME",xc_Name18_Input.text)
                xc_Name18_Text.text  = xc_Name18_Input.text
                xc_Name18_Text.visible = true
                xc_Name18_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name18_Text.visible = false
                    xc_Name18_Input.visible = true
                    xc_Name18_Input.text = xc_Name18_Text.text
                    xc_Name18_Input.forceActiveFocus()
                    xc_Name18_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 18")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height18_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height18
        anchors.left: backGround.left
        anchors.leftMargin: 225
        anchors.top: backGround.top
        anchors.topMargin: 1345
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height18_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height18
        }

        TextInput{
            id:xc_Height18_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(18,"XCVALUE",xc_Height18_Input.text)
                xc_Height18_Text.text  = xc_Height18_Input.text
                xc_Height18_Text.visible = true
                xc_Height18_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height18_Text.visible = false
                xc_Height18_Input.visible = true
                xc_Height18_Input.text = xc_Height18_Text.text
                xc_Height18_Input.forceActiveFocus()
                xc_Height18_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name19
        anchors.left: backGround.left
        anchors.leftMargin: 30
        anchors.top: backGround.top
        anchors.topMargin: 1420
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name19_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name19
        }

        TextInput{
            id:xc_Name19_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(19,"XCNAME",xc_Name19_Input.text)
                xc_Name19_Text.text  = xc_Name19_Input.text
                xc_Name19_Text.visible = true
                xc_Name19_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name19_Text.visible = false
                    xc_Name19_Input.visible = true
                    xc_Name19_Input.text = xc_Name19_Text.text
                    xc_Name19_Input.forceActiveFocus()
                    xc_Name19_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 19")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height19_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height19
        anchors.left: backGround.left
        anchors.leftMargin: 225
        anchors.top: backGround.top
        anchors.topMargin: 1420
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height19_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height19
        }

        TextInput{
            id:xc_Height19_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(19,"XCVALUE",xc_Height19_Input.text)
                xc_Height19_Text.text  = xc_Height19_Input.text
                xc_Height19_Text.visible = true
                xc_Height19_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height19_Text.visible = false
                xc_Height19_Input.visible = true
                xc_Height19_Input.text = xc_Height19_Text.text
                xc_Height19_Input.forceActiveFocus()
                xc_Height19_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name20
        anchors.left: backGround.left
        anchors.leftMargin: 30
        anchors.top: backGround.top
        anchors.topMargin: 1495
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name20_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name20
        }

        TextInput{
            id:xc_Name20_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(20,"XCNAME",xc_Name20_Input.text)
                xc_Name20_Text.text  = xc_Name20_Input.text
                xc_Name20_Text.visible = true
                xc_Name20_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name20_Text.visible = false
                    xc_Name20_Input.visible = true
                    xc_Name20_Input.text = xc_Name20_Text.text
                    xc_Name20_Input.forceActiveFocus()
                    xc_Name20_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 20")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height20_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height20
        anchors.left: backGround.left
        anchors.leftMargin: 225
        anchors.top: backGround.top
        anchors.topMargin: 1495
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height20_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height20
        }

        TextInput{
            id:xc_Height20_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(20,"XCVALUE",xc_Height20_Input.text)
                xc_Height20_Text.text  = xc_Height20_Input.text
                xc_Height20_Text.visible = true
                xc_Height20_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height20_Text.visible = false
                xc_Height20_Input.visible = true
                xc_Height20_Input.text = xc_Height20_Text.text
                xc_Height20_Input.forceActiveFocus()
                xc_Height20_Input.selectAll()
            }
        }

    }


    //////////////右侧输入框//////////////////

    Rectangle{
        id:xc_Name21
        anchors.left: backGround.left
        anchors.leftMargin: 450
        anchors.top: backGround.top
        anchors.topMargin: 70
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name21_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name21
        }

        TextInput{
            id:xc_Name21_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(21,"XCNAME",xc_Name21_Input.text)
                xc_Name21_Text.text  = xc_Name21_Input.text
                xc_Name21_Text.visible = true
                xc_Name21_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name21_Text.visible = false
                    xc_Name21_Input.visible = true
                    xc_Name21_Input.text = xc_Name21_Text.text
                    xc_Name21_Input.forceActiveFocus()
                    xc_Name21_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 21 ")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height21_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height21
        anchors.left: backGround.left
        anchors.leftMargin: 650
        anchors.top: backGround.top
        anchors.topMargin: 70
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height21_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height21
        }

        TextInput{
            id:xc_Height21_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(21,"XCVALUE",xc_Height21_Input.text)
                xc_Height21_Text.text  = xc_Height21_Input.text
                xc_Height21_Text.visible = true
                xc_Height21_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height21_Text.visible = false
                xc_Height21_Input.visible = true
                xc_Height21_Input.text = xc_Height21_Text.text
                xc_Height21_Input.forceActiveFocus()
                xc_Height21_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name22
        anchors.left: backGround.left
        anchors.leftMargin: 450
        anchors.top: backGround.top
        anchors.topMargin: 145
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name22_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name22
        }

        TextInput{
            id:xc_Name22_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(22,"XCNAME",xc_Name22_Input.text)
                xc_Name22_Text.text  = xc_Name22_Input.text
                xc_Name22_Text.visible = true
                xc_Name22_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name22_Text.visible = false
                    xc_Name22_Input.visible = true
                    xc_Name22_Input.text = xc_Name22_Text.text
                    xc_Name22_Input.forceActiveFocus()
                    xc_Name22_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 22 ")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height22_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height22
        anchors.left: backGround.left
        anchors.leftMargin: 650
        anchors.top: backGround.top
        anchors.topMargin: 145
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height22_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height22
        }

        TextInput{
            id:xc_Height22_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(22,"XCVALUE",xc_Height22_Input.text)
                xc_Height22_Text.text  = xc_Height22_Input.text
                xc_Height22_Text.visible = true
                xc_Height22_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height22_Text.visible = false
                xc_Height22_Input.visible = true
                xc_Height22_Input.text = xc_Height22_Text.text
                xc_Height22_Input.forceActiveFocus()
                xc_Height22_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name23
        anchors.left: backGround.left
        anchors.leftMargin: 450
        anchors.top: backGround.top
        anchors.topMargin: 220
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name23_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name23
        }

        TextInput{
            id:xc_Name23_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(23,"XCNAME",xc_Name23_Input.text)
                xc_Name23_Text.text  = xc_Name23_Input.text
                xc_Name23_Text.visible = true
                xc_Name23_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name23_Text.visible = false
                    xc_Name23_Input.visible = true
                    xc_Name23_Input.text = xc_Name23_Text.text
                    xc_Name23_Input.forceActiveFocus()
                    xc_Name23_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 23 ")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height23_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height23
        anchors.left: backGround.left
        anchors.leftMargin: 650
        anchors.top: backGround.top
        anchors.topMargin: 220
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height23_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height23
        }

        TextInput{
            id:xc_Height23_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(23,"XCVALUE",xc_Height23_Input.text)
                xc_Height23_Text.text  = xc_Height23_Input.text
                xc_Height23_Text.visible = true
                xc_Height23_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height23_Text.visible = false
                xc_Height23_Input.visible = true
                xc_Height23_Input.text = xc_Height23_Text.text
                xc_Height23_Input.forceActiveFocus()
                xc_Height23_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name24
        anchors.left: backGround.left
        anchors.leftMargin: 450
        anchors.top: backGround.top
        anchors.topMargin: 295
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name24_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name24
        }

        TextInput{
            id:xc_Name24_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(24,"XCNAME",xc_Name24_Input.text)
                xc_Name24_Text.text  = xc_Name24_Input.text
                xc_Name24_Text.visible = true
                xc_Name24_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name24_Text.visible = false
                    xc_Name24_Input.visible = true
                    xc_Name24_Input.text = xc_Name24_Text.text
                    xc_Name24_Input.forceActiveFocus()
                    xc_Name24_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 24 ")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height24_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height24
        anchors.left: backGround.left
        anchors.leftMargin: 650
        anchors.top: backGround.top
        anchors.topMargin: 295
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height24_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height24
        }

        TextInput{
            id:xc_Height24_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(24,"XCVALUE",xc_Height24_Input.text)
                xc_Height24_Text.text  = xc_Height24_Input.text
                xc_Height24_Text.visible = true
                xc_Height24_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height24_Text.visible = false
                xc_Height24_Input.visible = true
                xc_Height24_Input.text = xc_Height24_Text.text
                xc_Height24_Input.forceActiveFocus()
                xc_Height24_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name25
        anchors.left: backGround.left
        anchors.leftMargin: 450
        anchors.top: backGround.top
        anchors.topMargin: 370
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name25_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name25
        }

        TextInput{
            id:xc_Name25_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(25,"XCNAME",xc_Name25_Input.text)
                xc_Name25_Text.text  = xc_Name25_Input.text
                xc_Name25_Text.visible = true
                xc_Name25_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name25_Text.visible = false
                    xc_Name25_Input.visible = true
                    xc_Name25_Input.text = xc_Name25_Text.text
                    xc_Name25_Input.forceActiveFocus()
                    xc_Name25_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 25 ")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height25_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height25
        anchors.left: backGround.left
        anchors.leftMargin: 650
        anchors.top: backGround.top
        anchors.topMargin: 370
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height25_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height25
        }

        TextInput{
            id:xc_Height25_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(25,"XCVALUE",xc_Height25_Input.text)
                xc_Height25_Text.text  = xc_Height25_Input.text
                xc_Height25_Text.visible = true
                xc_Height25_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height25_Text.visible = false
                xc_Height25_Input.visible = true
                xc_Height25_Input.text = xc_Height25_Text.text
                xc_Height25_Input.forceActiveFocus()
                xc_Height25_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name26
        anchors.left: backGround.left
        anchors.leftMargin: 450
        anchors.top: backGround.top
        anchors.topMargin: 445
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name26_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name26
        }

        TextInput{
            id:xc_Name26_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(26,"XCNAME",xc_Name26_Input.text)
                xc_Name26_Text.text  = xc_Name26_Input.text
                xc_Name26_Text.visible = true
                xc_Name26_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name26_Text.visible = false
                    xc_Name26_Input.visible = true
                    xc_Name26_Input.text = xc_Name26_Text.text
                    xc_Name26_Input.forceActiveFocus()
                    xc_Name26_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 26")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height26_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height26
        anchors.left: backGround.left
        anchors.leftMargin: 650
        anchors.top: backGround.top
        anchors.topMargin: 445
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height26_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height26
        }

        TextInput{
            id:xc_Height26_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(26,"XCVALUE",xc_Height26_Input.text)
                xc_Height26_Text.text  = xc_Height26_Input.text
                xc_Height26_Text.visible = true
                xc_Height26_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height26_Text.visible = false
                xc_Height26_Input.visible = true
                xc_Height26_Input.text = xc_Height26_Text.text
                xc_Height26_Input.forceActiveFocus()
                xc_Height26_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name27
        anchors.left: backGround.left
        anchors.leftMargin: 450
        anchors.top: backGround.top
        anchors.topMargin: 520
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name27_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name27
        }

        TextInput{
            id:xc_Name27_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(27,"XCNAME",xc_Name27_Input.text)
                xc_Name27_Text.text  = xc_Name27_Input.text
                xc_Name27_Text.visible = true
                xc_Name27_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name27_Text.visible = false
                    xc_Name27_Input.visible = true
                    xc_Name27_Input.text = xc_Name27_Text.text
                    xc_Name27_Input.forceActiveFocus()
                    xc_Name27_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 27")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height27_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height27
        anchors.left: backGround.left
        anchors.leftMargin: 650
        anchors.top: backGround.top
        anchors.topMargin: 520
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height27_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height27
        }

        TextInput{
            id:xc_Height27_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(27,"XCVALUE",xc_Height27_Input.text)
                xc_Height27_Text.text  = xc_Height27_Input.text
                xc_Height27_Text.visible = true
                xc_Height27_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height27_Text.visible = false
                xc_Height27_Input.visible = true
                xc_Height27_Input.text = xc_Height27_Text.text
                xc_Height27_Input.forceActiveFocus()
                xc_Height27_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name28
        anchors.left: backGround.left
        anchors.leftMargin: 450
        anchors.top: backGround.top
        anchors.topMargin: 595
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name28_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name28
        }

        TextInput{
            id:xc_Name28_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(28,"XCNAME",xc_Name28_Input.text)
                xc_Name28_Text.text  = xc_Name28_Input.text
                xc_Name28_Text.visible = true
                xc_Name28_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name28_Text.visible = false
                    xc_Name28_Input.visible = true
                    xc_Name28_Input.text = xc_Name28_Text.text
                    xc_Name28_Input.forceActiveFocus()
                    xc_Name28_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 28")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height28_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height28
        anchors.left: backGround.left
        anchors.leftMargin: 650
        anchors.top: backGround.top
        anchors.topMargin: 595
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height28_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height28
        }

        TextInput{
            id:xc_Height28_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(28,"XCVALUE",xc_Height28_Input.text)
                xc_Height28_Text.text  = xc_Height28_Input.text
                xc_Height28_Text.visible = true
                xc_Height28_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height28_Text.visible = false
                xc_Height28_Input.visible = true
                xc_Height28_Input.text = xc_Height28_Text.text
                xc_Height28_Input.forceActiveFocus()
                xc_Height28_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name29
        anchors.left: backGround.left
        anchors.leftMargin: 450
        anchors.top: backGround.top
        anchors.topMargin: 670
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name29_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name29
        }

        TextInput{
            id:xc_Name29_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(29,"XCNAME",xc_Name29_Input.text)
                xc_Name29_Text.text  = xc_Name29_Input.text
                xc_Name29_Text.visible = true
                xc_Name29_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name29_Text.visible = false
                    xc_Name29_Input.visible = true
                    xc_Name29_Input.text = xc_Name29_Text.text
                    xc_Name29_Input.forceActiveFocus()
                    xc_Name29_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 29")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height29_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height29
        anchors.left: backGround.left
        anchors.leftMargin: 650
        anchors.top: backGround.top
        anchors.topMargin: 670
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height29_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height29
        }

        TextInput{
            id:xc_Height29_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(29,"XCVALUE",xc_Height29_Input.text)
                xc_Height29_Text.text  = xc_Height29_Input.text
                xc_Height29_Text.visible = true
                xc_Height29_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height29_Text.visible = false
                xc_Height29_Input.visible = true
                xc_Height29_Input.text = xc_Height29_Text.text
                xc_Height29_Input.forceActiveFocus()
                xc_Height29_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name30
        anchors.left: backGround.left
        anchors.leftMargin: 450
        anchors.top: backGround.top
        anchors.topMargin: 745
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name30_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name30
        }

        TextInput{
            id:xc_Name30_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(30,"XCNAME",xc_Name30_Input.text)
                xc_Name30_Text.text  = xc_Name30_Input.text
                xc_Name30_Text.visible = true
                xc_Name30_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name30_Text.visible = false
                    xc_Name30_Input.visible = true
                    xc_Name30_Input.text = xc_Name30_Text.text
                    xc_Name30_Input.forceActiveFocus()
                    xc_Name30_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 30")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height30_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height30
        anchors.left: backGround.left
        anchors.leftMargin: 650
        anchors.top: backGround.top
        anchors.topMargin: 745
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height30_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height30
        }

        TextInput{
            id:xc_Height30_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(30,"XCVALUE",xc_Height30_Input.text)
                xc_Height30_Text.text  = xc_Height30_Input.text
                xc_Height30_Text.visible = true
                xc_Height30_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height30_Text.visible = false
                xc_Height30_Input.visible = true
                xc_Height30_Input.text = xc_Height30_Text.text
                xc_Height30_Input.forceActiveFocus()
                xc_Height30_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name31
        anchors.left: backGround.left
        anchors.leftMargin: 450
        anchors.top: backGround.top
        anchors.topMargin: 820
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name31_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name31
        }

        TextInput{
            id:xc_Name31_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(31,"XCNAME",xc_Name31_Input.text)
                xc_Name31_Text.text  = xc_Name31_Input.text
                xc_Name31_Text.visible = true
                xc_Name31_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name31_Text.visible = false
                    xc_Name31_Input.visible = true
                    xc_Name31_Input.text = xc_Name31_Text.text
                    xc_Name31_Input.forceActiveFocus()
                    xc_Name31_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 31 ")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height31_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height31
        anchors.left: backGround.left
        anchors.leftMargin: 650
        anchors.top: backGround.top
        anchors.topMargin: 820
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height31_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height31
        }

        TextInput{
            id:xc_Height31_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(31,"XCVALUE",xc_Height31_Input.text)
                xc_Height31_Text.text  = xc_Height31_Input.text
                xc_Height31_Text.visible = true
                xc_Height31_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height31_Text.visible = false
                xc_Height31_Input.visible = true
                xc_Height31_Input.text = xc_Height31_Text.text
                xc_Height31_Input.forceActiveFocus()
                xc_Height31_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name32
        anchors.left: backGround.left
        anchors.leftMargin: 450
        anchors.top: backGround.top
        anchors.topMargin: 895
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name32_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name32
        }

        TextInput{
            id:xc_Name32_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(32,"XCNAME",xc_Name32_Input.text)
                xc_Name32_Text.text  = xc_Name32_Input.text
                xc_Name32_Text.visible = true
                xc_Name32_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name32_Text.visible = false
                    xc_Name32_Input.visible = true
                    xc_Name32_Input.text = xc_Name32_Text.text
                    xc_Name32_Input.forceActiveFocus()
                    xc_Name32_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 32")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height32_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height32
        anchors.left: backGround.left
        anchors.leftMargin: 650
        anchors.top: backGround.top
        anchors.topMargin: 895
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height32_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height32
        }

        TextInput{
            id:xc_Height32_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(32,"XCVALUE",xc_Height32_Input.text)
                xc_Height32_Text.text  = xc_Height32_Input.text
                xc_Height32_Text.visible = true
                xc_Height32_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height32_Text.visible = false
                xc_Height32_Input.visible = true
                xc_Height32_Input.text = xc_Height32_Text.text
                xc_Height32_Input.forceActiveFocus()
                xc_Height32_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name33
        anchors.left: backGround.left
        anchors.leftMargin: 450
        anchors.top: backGround.top
        anchors.topMargin: 970
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name33_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name33
        }

        TextInput{
            id:xc_Name33_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(33,"XCNAME",xc_Name33_Input.text)
                xc_Name33_Text.text  = xc_Name33_Input.text
                xc_Name33_Text.visible = true
                xc_Name33_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name33_Text.visible = false
                    xc_Name33_Input.visible = true
                    xc_Name33_Input.text = xc_Name33_Text.text
                    xc_Name33_Input.forceActiveFocus()
                    xc_Name33_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 33")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height33_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height33
        anchors.left: backGround.left
        anchors.leftMargin: 650
        anchors.top: backGround.top
        anchors.topMargin: 970
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height33_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height33
        }

        TextInput{
            id:xc_Height33_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(33,"XCVALUE",xc_Height33_Input.text)
                xc_Height33_Text.text  = xc_Height33_Input.text
                xc_Height33_Text.visible = true
                xc_Height33_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height33_Text.visible = false
                xc_Height33_Input.visible = true
                xc_Height33_Input.text = xc_Height33_Text.text
                xc_Height33_Input.forceActiveFocus()
                xc_Height33_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name34
        anchors.left: backGround.left
        anchors.leftMargin: 450
        anchors.top: backGround.top
        anchors.topMargin: 1045
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name34_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name34
        }

        TextInput{
            id:xc_Name34_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(34,"XCNAME",xc_Name34_Input.text)
                xc_Name34_Text.text  = xc_Name34_Input.text
                xc_Name34_Text.visible = true
                xc_Name34_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name34_Text.visible = false
                    xc_Name34_Input.visible = true
                    xc_Name34_Input.text = xc_Name34_Text.text
                    xc_Name34_Input.forceActiveFocus()
                    xc_Name34_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 34")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height34_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height34
        anchors.left: backGround.left
        anchors.leftMargin: 650
        anchors.top: backGround.top
        anchors.topMargin: 1045
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height34_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height34
        }

        TextInput{
            id:xc_Height34_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(34,"XCVALUE",xc_Height34_Input.text)
                xc_Height34_Text.text  = xc_Height34_Input.text
                xc_Height34_Text.visible = true
                xc_Height34_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height34_Text.visible = false
                xc_Height34_Input.visible = true
                xc_Height34_Input.text = xc_Height34_Text.text
                xc_Height34_Input.forceActiveFocus()
                xc_Height34_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name35
        anchors.left: backGround.left
        anchors.leftMargin: 450
        anchors.top: backGround.top
        anchors.topMargin: 1120
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name35_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name35
        }

        TextInput{
            id:xc_Name35_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(35,"XCNAME",xc_Name35_Input.text)
                xc_Name35_Text.text  = xc_Name35_Input.text
                xc_Name35_Text.visible = true
                xc_Name35_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name35_Text.visible = false
                    xc_Name35_Input.visible = true
                    xc_Name35_Input.text = xc_Name35_Text.text
                    xc_Name35_Input.forceActiveFocus()
                    xc_Name35_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 35")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height35_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height35
        anchors.left: backGround.left
        anchors.leftMargin: 650
        anchors.top: backGround.top
        anchors.topMargin: 1120
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height35_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height35
        }

        TextInput{
            id:xc_Height35_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(35,"XCVALUE",xc_Height35_Input.text)
                xc_Height35_Text.text  = xc_Height35_Input.text
                xc_Height35_Text.visible = true
                xc_Height35_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height35_Text.visible = false
                xc_Height35_Input.visible = true
                xc_Height35_Input.text = xc_Height35_Text.text
                xc_Height35_Input.forceActiveFocus()
                xc_Height35_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name36
        anchors.left: backGround.left
        anchors.leftMargin: 450
        anchors.top: backGround.top
        anchors.topMargin: 1195
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name36_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name36
        }

        TextInput{
            id:xc_Name36_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(36,"XCNAME",xc_Name36_Input.text)
                xc_Name36_Text.text  = xc_Name36_Input.text
                xc_Name36_Text.visible = true
                xc_Name36_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name36_Text.visible = false
                    xc_Name36_Input.visible = true
                    xc_Name36_Input.text = xc_Name36_Text.text
                    xc_Name36_Input.forceActiveFocus()
                    xc_Name36_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 36")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height31_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height36
        anchors.left: backGround.left
        anchors.leftMargin: 650
        anchors.top: backGround.top
        anchors.topMargin: 1195
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height36_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height36
        }

        TextInput{
            id:xc_Height36_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(36,"XCVALUE",xc_Height36_Input.text)
                xc_Height36_Text.text  = xc_Height36_Input.text
                xc_Height36_Text.visible = true
                xc_Height36_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height36_Text.visible = false
                xc_Height36_Input.visible = true
                xc_Height36_Input.text = xc_Height36_Text.text
                xc_Height36_Input.forceActiveFocus()
                xc_Height36_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name37
        anchors.left: backGround.left
        anchors.leftMargin: 450
        anchors.top: backGround.top
        anchors.topMargin: 1270
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name37_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name37
        }

        TextInput{
            id:xc_Name37_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(37,"XCNAME",xc_Name37_Input.text)
                xc_Name37_Text.text  = xc_Name37_Input.text
                xc_Name37_Text.visible = true
                xc_Name37_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name37_Text.visible = false
                    xc_Name37_Input.visible = true
                    xc_Name37_Input.text = xc_Name37_Text.text
                    xc_Name37_Input.forceActiveFocus()
                    xc_Name37_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 37")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height37_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height37
        anchors.left: backGround.left
        anchors.leftMargin: 650
        anchors.top: backGround.top
        anchors.topMargin: 1270
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height37_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height37
        }

        TextInput{
            id:xc_Height37_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(37,"XCVALUE",xc_Height37_Input.text)
                xc_Height37_Text.text  = xc_Height37_Input.text
                xc_Height37_Text.visible = true
                xc_Height37_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height37_Text.visible = false
                xc_Height37_Input.visible = true
                xc_Height37_Input.text = xc_Height37_Text.text
                xc_Height37_Input.forceActiveFocus()
                xc_Height37_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name38
        anchors.left: backGround.left
        anchors.leftMargin: 450
        anchors.top: backGround.top
        anchors.topMargin: 1345
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name38_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name38
        }

        TextInput{
            id:xc_Name38_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(38,"XCNAME",xc_Name38_Input.text)
                xc_Name38_Text.text  = xc_Name38_Input.text
                xc_Name38_Text.visible = true
                xc_Name38_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name38_Text.visible = false
                    xc_Name38_Input.visible = true
                    xc_Name38_Input.text = xc_Name38_Text.text
                    xc_Name38_Input.forceActiveFocus()
                    xc_Name38_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 38 ")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height38_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height38
        anchors.left: backGround.left
        anchors.leftMargin: 650
        anchors.top: backGround.top
        anchors.topMargin: 1345
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height38_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height38
        }

        TextInput{
            id:xc_Height38_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(38,"XCVALUE",xc_Height38_Input.text)
                xc_Height38_Text.text  = xc_Height38_Input.text
                xc_Height38_Text.visible = true
                xc_Height38_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height38_Text.visible = false
                xc_Height38_Input.visible = true
                xc_Height38_Input.text = xc_Height38_Text.text
                xc_Height38_Input.forceActiveFocus()
                xc_Height38_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name39
        anchors.left: backGround.left
        anchors.leftMargin: 450
        anchors.top: backGround.top
        anchors.topMargin: 1420
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name39_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name39
        }

        TextInput{
            id:xc_Name39_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(39,"XCNAME",xc_Name39_Input.text)
                xc_Name39_Text.text  = xc_Name39_Input.text
                xc_Name39_Text.visible = true
                xc_Name39_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name39_Text.visible = false
                    xc_Name39_Input.visible = true
                    xc_Name39_Input.text = xc_Name39_Text.text
                    xc_Name39_Input.forceActiveFocus()
                    xc_Name39_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 39")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height39_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height39
        anchors.left: backGround.left
        anchors.leftMargin: 650
        anchors.top: backGround.top
        anchors.topMargin: 1420
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height39_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height39
        }

        TextInput{
            id:xc_Height39_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(39,"XCVALUE",xc_Height39_Input.text)
                xc_Height39_Text.text  = xc_Height39_Input.text
                xc_Height39_Text.visible = true
                xc_Height39_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height39_Text.visible = false
                xc_Height39_Input.visible = true
                xc_Height39_Input.text = xc_Height39_Text.text
                xc_Height39_Input.forceActiveFocus()
                xc_Height39_Input.selectAll()
            }
        }

    }

    Rectangle{
        id:xc_Name40
        anchors.left: backGround.left
        anchors.leftMargin: 450
        anchors.top: backGround.top
        anchors.topMargin: 1495
        width: 180
        height: 70
        radius: 10

        color: focus ? "green" : !modeType ? "gray" :  "white"

        Text{
            id:xc_Name40_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Name40
        }

        TextInput{
            id:xc_Name40_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false
            enabled: modeType

            onEditingFinished: {
                Cpp_LGChoose.saveData(40,"XCNAME",xc_Name40_Input.text)
                xc_Name40_Text.text  = xc_Name40_Input.text
                xc_Name40_Text.visible = true
                xc_Name40_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {

                parent.forceActiveFocus()

                if(modeType)
                {
                    xc_Name40_Text.visible = false
                    xc_Name40_Input.visible = true
                    xc_Name40_Input.text = xc_Name40_Text.text
                    xc_Name40_Input.forceActiveFocus()
                    xc_Name40_Input.selectAll()
                }
                else
                {
                    console.log("写入 料高 40")
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",xc_Height40_Text.text)
                }
            }
        }

    }

    Rectangle{
        id:xc_Height40
        anchors.left: backGround.left
        anchors.leftMargin: 650
        anchors.top: backGround.top
        anchors.topMargin: 1495
        width: 180
        height: 70
        radius: 10
        enabled: modeType
        color: modeType ? "white" : "gray"

        Text{
            id:xc_Height40_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_LGChoose.xc_Height40
        }

        TextInput{
            id:xc_Height40_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_LGChoose.saveData(40,"XCVALUE",xc_Height40_Input.text)
                xc_Height40_Text.text  = xc_Height40_Input.text
                xc_Height40_Text.visible = true
                xc_Height40_Input.visible = false
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                xc_Height40_Text.visible = false
                xc_Height40_Input.visible = true
                xc_Height40_Input.text = xc_Height40_Text.text
                xc_Height40_Input.forceActiveFocus()
                xc_Height40_Input.selectAll()
            }
        }

    }

    Text{
        anchors.right: backGround.right
        anchors.rightMargin: 70
        anchors.top: backGround.top
        anchors.topMargin: 30
        font.pixelSize: 30
        font.bold: true
        text: qsTr("型材高度")
    }

    Rectangle{
        anchors.right: backGround.right
        anchors.rightMargin: 25
        anchors.top: backGround.top
        anchors.topMargin: 70
        width: 200
        height: 80
        border.width: 1
        border.color: "#f0f8ff"
        color: "black"

        Text{
            id:lg_value_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            color: "aqua"
            text: Cpp_Connect.LG_value
        }

        // TextInput{
        //     id:lg_value_Input
        //     anchors.centerIn: parent
        //     font.pixelSize: 30
        //     font.bold: true
        //     visible: false

        //     onEditingFinished: {
        //         Cpp_Connect.write_modbus_rtu_Hold_F("214",lg_value_Input.text)
        //         lg_value_Text.visible = true
        //         lg_value_Input.visible = false
        //     }

        // }

        // MouseArea{
        //     anchors.fill: parent

        //     onClicked: {
        //         lg_value_Input.forceActiveFocus()
        //         lg_value_Input.visible = true
        //         lg_value_Text.visible = false
        //         lg_value_Input.text = lg_value_Text.text
        //         lg_value_Input.selectAll()
        //     }
        // }


    }


    Rectangle{
        anchors.right: backGround.right
        anchors.rightMargin: 25
        anchors.top: backGround.top
        anchors.topMargin: 200
        width: 200
        height: 80
        radius: 10
        border.width: 1
        border.color: "#f0f8ff"
        color: modeType ? "#ff3606" : "#006cee"

        Text {
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            text: modeType ? qsTr("修改模式") : qsTr("选择模式")
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                modeType = !modeType
            }

        }

    }

    Rectangle{
        anchors.right: backGround.right
        anchors.rightMargin: 25
        anchors.top: backGround.top
        anchors.topMargin: 350
        width: 200
        height: 80
        radius: 10
        border.width: 1
        border.color: "#f0f8ff"
        color: "#006cee"
        visible: false

        Text{
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            text: qsTr("增加按钮")
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                Cpp_LGChoose.addData()
            }
        }

    }


    Rectangle{
        anchors.right: backGround.right
        anchors.rightMargin: 25
        anchors.top: backGround.top
        anchors.topMargin: 1490
        width: 200
        height: 80
        radius: 10
        border.width: 1
        border.color: "#f0f8ff"
        color: "#006cee"

        Text {
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            text:  qsTr("退  出")
        }

        MouseArea{
            anchors.fill: parent

            onPressed: {
                parent.color = "#ff3606"
                parent.forceActiveFocus()
            }

            onReleased: {
                parent.color = "#006cee"
                lg_ChooseWindow.visible = false
                processWindow.visible = true
            }
        }

    }



}
